package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Member;
import com.itheima.pojo.Order;

import java.util.List;

public interface MemberDao {
    public List<Member> findAll();

    public Page<Member> selectByCondition(String queryString);

    public void add(Member member);

    public void deleteById(Integer id);

    public Member findById(Integer id);

    public Member findByTelephone(String telephone);

    public void edit(Member member);

    public Integer findMemberCountBeforeDate(String date);

    public Integer findMemberCountByDate(String date);

    public Integer findMemberCountAfterDate(String date);

    public Integer findMemberTotalCount();

    Long selectCountOrderByMemberId(Integer id);

    List<Member> findByIds(List<Integer> list);

    List<String> findManagerByRoleId();

    Page<Member> queryPage(String queryString);

    Integer findRelevanceById(Integer id);

    void updateNameById(Order order);
}
